From 6a2e61338ae1984cf7bf7eef979a038f673a61b5 Mon Sep 17 00:00:00 2001 From: Wangshan Lu Date: Tue, 31 May 2016 19:43:44 +0800 Subject: [PATCH] Use place holder for main thread name in tests --- tests/bench.rs | 2 +- tests/install.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bench.rs b/tests/bench.rs index 7a66ccc67..37adbf4ce 100644 --- a/tests/bench.rs +++ b/tests/bench.rs @@ -187,7 +187,7 @@ test bench_hello ... ") .with_stderr_contains(format!("\ [COMPILING] foo v0.5.0 ({}) [RUNNING] target[..]release[..]foo-[..] -thread 'main' panicked at 'assertion failed: \ +thread '[..]' panicked at 'assertion failed: \ `(left == right)` (left: \ `\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14 [..] diff --git a/tests/install.rs b/tests/install.rs index 1b6f36540..acbbdcd53 100644 --- a/tests/install.rs +++ b/tests/install.rs @@ -715,7 +715,7 @@ fn reports_unsuccessful_subcommand_result() { execs().with_status(0).with_stdout_contains(" fail\n")); assert_that(cargo_process("fail"), execs().with_status(101).with_stderr_contains("\ -thread 'main' panicked at 'explicit panic', [..] +thread '[..]' panicked at 'explicit panic', [..] ")); } -- 2.30.2